<?php

class Contest_Form_StatisticDemographicControl extends YouNet_Form
{
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	protected $_element_decorators_list_radio = array(
			'ViewHelper',
			array(array('data'=>'HtmlTag'),array('tag' => 'div','class' => 'ym_form_element', 'id' => 'modes')),
			array('Label', array('tag' => 'div', 'class' => '', 'tagClass' => 'ym_form_label')),
			array('HtmlTag', array('tag' => 'div', 'class' => 'box_list_radio', 'id' => 'box_list_radio'))
	);
	   
	public function init() {
		$this->setAttrib('class', 'sm_form classic');
		$this->setName('demographic-form');
		
		$mode = new Zend_Form_Element_Radio('dlist');
        $mode->setMultiOptions(array(   YouNet_Model_DbTable_Visitors::STATISTIC_KEY => $this->getTranslator()->_('STATISTIC_VIEWS'), 
                                        YouNet_Model_DbTable_Likes::STATISTIC_KEY => $this->getTranslator()->_('STATISTIC_LIKE'),
                                        Core_Model_DbTable_Votes::STATISTIC_KEY => $this->getTranslator()->_('STATISTIC_VOTERS')))
                ->setLabel("")
                ->setSeparator('')
				->setValue(YouNet_Model_DbTable_Visitors::STATISTIC_KEY)
                ->setDecorators($this->_element_decorators_list_radio);				
		$this->addElement($mode);

	}
			
}